import Vue from 'vue'
import App from './App.vue'
import vuePrintDesigner from '../src'
import VueRouter from 'vue-router'
import Designer from './page/designer.vue'
import Index from './page/index.vue'
import {Table, TableColumn, Dialog, MessageBox, Message} from 'element-ui'

Vue.use(VueRouter)
Vue.use(vuePrintDesigner)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Dialog)
Vue.prototype.$message = Message
Vue.prototype.$confirm = (...args) => MessageBox.confirm(...args)

const routes = [
  {path: '/', component: Index},
  {path: '/designer', component: Designer}
]
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
